package com.design.adapter;

/**
 * @Author: ChengLei.Liu
 * @Date: 2020-06-10 10:58
 * @Description: 电压适配器
 */
public class VoltageAdapterObj implements Output5V{

    private Output220V output220V;

    public VoltageAdapterObj(Output220V output220V){
        this.output220V = output220V;
    }

    @Override
    public int output5v() {
        return this.output220V.output220V()/44;
    }
}
